From 684173fed1386c7ac5243dbabdc25fa5585c9700 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 29 Oct 2008 16:58:05 +0000 Subject: [PATCH] cpufreq.c: shut up compiler about cpufreq_dom Some versions of GCC are too stupid to figure out that cpufreq_dom is only used if !!domexist and always set in that case, and complain that it may be used uninitialised. Signed-off-by: Ian Jackson --- xen/drivers/cpufreq/cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/cpufreq/cpufreq.c b/xen/drivers/cpufreq/cpufreq.c index eb88e1744b..7020ad50a1 100644 --- a/xen/drivers/cpufreq/cpufreq.c +++ b/xen/drivers/cpufreq/cpufreq.c @@ -80,7 +80,7 @@ int cpufreq_add_cpu(unsigned int cpu) unsigned int dom, domexist = 0; unsigned int j; struct list_head *pos; - struct cpufreq_dom *cpufreq_dom; + struct cpufreq_dom *cpufreq_dom = NULL; struct cpufreq_policy new_policy; struct cpufreq_policy *policy; struct processor_performance *perf = &processor_pminfo[cpu]->perf; -- 2.30.2